//
//  HKPeoplePickerDelegate.h
//  HKAddressBookManager
//
//  Created by 胡锦涛 on 2018/12/27.
//  Copyright © 2018 胡锦涛. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AddressBookUI/AddressBookUI.h>
#import <ContactsUI/ContactsUI.h>

NS_ASSUME_NONNULL_BEGIN

@interface HKPeoplePickerDelegate : NSObject<ABPeoplePickerNavigationControllerDelegate, CNContactPickerDelegate, CNContactViewControllerDelegate>
@property (nonatomic, copy) NSString *phoneNum;
@property (nonatomic, copy) NSString *userIcon;
@property (nonatomic, weak) UIViewController *controller;
@property (nonatomic, copy) void (^handler) (CNContact *contact);
/**
 添加已有联系人头像 (iOS 9 以上)
 */
- (void)setExistingContactsWithUserIcon:(NSString *)userIcon
                               userName:(NSString *)userName
                                contact:(CNContact *)contact
                            complection:(void (^)( CNContact *))completcion;
@end

NS_ASSUME_NONNULL_END
